<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>基本选择器</title>
    <style>
        div{
            color: red;
        }
        .cls{
            color: pink;
        }
        #d1{
            color: yellow;
        }
        #d2{
            color: green;
        }
        #d3{
            color: chartreuse;
        }
        #d4{
            color: blue;
        }
        #d5 {
            color: blueviolet;
        }
    </style>
</head>
<body>
<div>div1</div>
<div class="cls">div2</div>
<div id="d1">div3</div>
<div id="d2">div4</div>
<div id="d3">div5</div>
<div id="d4">div6</div>
<div id="d5">div7</div>
</body>
</html>